//1.导入vue-router的函数
import { createRouter, createWebHashHistory } from 'vue-router'
//2.导入需要跳转的页面组件。
import HomeFrame from '@/views/Home/HomeFrame'
import RegistryFrame from '@/views/Home/Registry/RegistryFrame'
import LoginFrame from '@/views/Home/Login/LoginFrame'
const routes = [
   { path: '/', component: HomeFrame },
   { path: '/registry', component: RegistryFrame },
   { path: '/login', component: LoginFrame },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router;